package cn.imokay.springboot.yml.configmodel;

import cn.imokay.springboot.yml.entity.User;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
@ConfigurationProperties("myconfig")
//构造器注入
//@ConstructorBinding
public class ConfigModel {
    private String str;
    private String specialstr;
    private Integer intnum;
    private Double dnum;
    private Date datestr;
    private List<String> list1;
    private List<String> list2;
    private List<String> list3;
    private Set<String> set1;
    private Set<String> set2;
    private Map<String,String> map1;
    private Map<String,String> map2;
    private List<User> userList;
    private List<User> userList2;
    private Set<User> userSet;
    private User user;
}
